package com.yuw.package6;

public class StudentComputer extends Student {

    // 属性
    private double optScore; // 操作能力
    private double enWritingScore; // 英语写作能力

    // 行为

    @Override
    public double calculateTotalScore() {
        return optScore * 0.4 + enWritingScore * 0.2 + this.getEndScore() * 0.2 +
                this.getMiddleScore() * 0.2;
    }

    public double getOptScore() {
        return optScore;
    }

    public void setOptScore(double optScore) {
        this.optScore = optScore;
    }

    public double getEnWritingScore() {
        return enWritingScore;
    }

    public void setEnWritingScore(double enWritingScore) {
        this.enWritingScore = enWritingScore;
    }
}
